package cn.vw.hi.user.manager;

import java.util.List;

import cn.vw.hi.commen.tools.Page;
import cn.vw.hi.user.model.User;
import cn.vw.hi.user.persistence.UserDao;

public class UserManagerImpl implements UserManager {

	private UserDao userDao=null;
	//添加用户
	public boolean addUser(User user) {
		return userDao.addUser(user);
	}
	public UserDao getUserDao() {
		return userDao;
	}
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	//修改用户
	public boolean modifyUser(User user) {
		return this.userDao.modifyUser(user);
	}
	//删除用户
	public boolean deleteUser(User user) {
		return this.userDao.deleteUser(user);
	}
	//查找用户
	public boolean findUser(User user) {
		return this.userDao.findUser(user);
	}
	//登录用户
	public User loginUser(User user) {
		return this.userDao.loginUser(user);
	}
	//获得用户列表
	public List userList(Page pageObj) {
		return this.userDao.userList(pageObj);
	}
	//查询用户
	public User findUserByEmail(User user) {
		return this.userDao.findUserByEmail(user);
	}

}
